<?php

namespace App\Admin\Actions\Row;

use Encore\Admin\Actions\RowAction;
use Encore\Admin\Facades\Admin;
use Illuminate\Database\Eloquent\Model;

class Delete extends RowAction
{
    public $name = '删除此条';
    
	public function authorize($user, $model)
    {
    	
        return false;
    }

    public function handle(Model $model)
    {
        // $model ...
		//Redirect::route('', ['' => '']);
	    
        return $this->response()->success('Success message.')->refresh();
    }

}